/* 帖子详情页样式 */
.main-content {
    padding-top: 100px;
    min-height: 100vh;
}

.breadcrumb {
    background: #f8f9fa;
    padding: 15px 0;
    margin-top: 70px;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumb nav {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #4CAF50;
}

.breadcrumb i {
    color: #ccc;
    font-size: 12px;
}

.breadcrumb span {
    color: #333;
    font-weight: 500;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    margin-bottom: 60px;
}

/* 帖子内容样式 */
.post-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
}

.post-header {
    padding: 40px;
    border-bottom: 1px solid #e9ecef;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.author-info {
    display: flex;
    gap: 15px;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-details h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.2rem;
}

.author-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
}

.expert-badge {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.post-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 16px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn:hover {
    border-color: #4CAF50;
    color: #4CAF50;
}

.follow-btn {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.follow-btn:hover {
    background: #45a049;
}

.post-title {
    font-size: 2.5rem;
    color: #333;
    margin: 0 0 25px 0;
    line-height: 1.3;
    font-weight: 700;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.tag {
    background: #f8f9fa;
    color: #666;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.tag:hover {
    background: #4CAF50;
    color: white;
}

.post-stats {
    display: flex;
    gap: 30px;
    padding: 20px 0;
    border-top: 1px solid #e9ecef;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.stat-item i {
    color: #4CAF50;
}

.stat-item .count {
    font-weight: 600;
    color: #333;
}

.stat-item .label {
    font-size: 14px;
}

/* 帖子正文样式 */
.post-body {
    padding: 40px;
}

.post-summary {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 4px solid #4CAF50;
}

.post-summary h3 {
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.post-summary i {
    color: #4CAF50;
}

.post-image {
    margin: 30px 0;
    text-align: center;
}

.post-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.image-caption {
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.post-text {
    line-height: 1.8;
    color: #333;
}

.post-text h2 {
    color: #2c5530;
    margin: 40px 0 20px 0;
    font-size: 1.8rem;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 10px;
}

.post-text h3 {
    color: #333;
    margin: 30px 0 15px 0;
    font-size: 1.4rem;
}

.post-text p {
    margin-bottom: 20px;
    text-align: justify;
}

.post-text ul, .post-text ol {
    margin: 20px 0;
    padding-left: 30px;
}

.post-text li {
    margin-bottom: 10px;
}

.post-text strong {
    color: #2c5530;
    font-weight: 600;
}

/* 提示框样式 */
.tip-box, .warning-box, .success-box {
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
    border-left: 4px solid;
}

.tip-box {
    background: #e8f5e8;
    border-color: #4CAF50;
}

.warning-box {
    background: #fff3cd;
    border-color: #ffc107;
}

.success-box {
    background: #d1ecf1;
    border-color: #17a2b8;
}

.tip-box h4, .warning-box h4, .success-box h4 {
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.tip-box i {
    color: #4CAF50;
}

.warning-box i {
    color: #ffc107;
}

.success-box i {
    color: #17a2b8;
}

/* 表格样式 */
.table-container {
    margin: 25px 0;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

th, td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

tr:hover {
    background: #f8f9fa;
}

/* 代码块样式 */
.code-block {
    margin: 25px 0;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
}

.code-block h4 {
    background: #333;
    color: white;
    padding: 15px 20px;
    margin: 0;
    font-size: 1rem;
}

.code-block pre {
    margin: 0;
    padding: 20px;
    background: #2d3748;
    color: #e2e8f0;
    overflow-x: auto;
}

.code-block code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
}

/* 帖子底部样式 */
.post-footer {
    padding: 30px 40px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.post-reactions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.reaction-btn {
    padding: 12px 20px;
    border: 2px solid #e9ecef;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.reaction-btn:hover {
    border-color: #4CAF50;
    color: #4CAF50;
}

.reaction-btn.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

.nav-link:hover {
    border-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav-link.next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.nav-title {
    display: block;
    font-weight: 600;
    color: #333;
}

/* 侧边栏样式 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;